package demo2;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.concurrent.atomic.AtomicIntegerArray;

public class Wait2 {

    public static void main(String[] args) {

//        AtomicInteger i2 = new AtomicInteger(1);
//        System.out.println(i2.get());
//        AtomicIntegerArray i = new AtomicIntegerArray(10);

        List<String> l = new ArrayList<>();
        List<String> list = Collections.synchronizedList(l);
    }
}
